package com.sky.service.impl;

import com.sky.entity.Setmeal;
import com.sky.mapper.SetmealDishMapper;
import com.sky.service.SetmealDishService;
import com.sky.vo.DishItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealDishServiceImpl implements SetmealDishService {
    @Autowired
    private SetmealDishMapper setmealDishMapper;

    /**
     * 根据setmeal参数查询菜品
     * @param setmeal
     * @return
     */
    public List<DishItemVO> listDishesBySetmeal(Setmeal setmeal){
        return setmealDishMapper.listDishesBySetmeal(setmeal);
    }
}
